package com.bjdd.jdy.ui.exam;

import com.bjdd.jdy.base.BaseModel;
import com.bjdd.jdy.base.BasePresenter;
import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.base.BaseView;
import com.bjdd.jdy.entity.ExamBean;
import com.bjdd.jdy.entity.ExamResult;

import java.util.List;

import rx.Observable;

/**
 * Created by Administrator on 2017/4/13.
 */

public interface ExamContract {
    interface Model extends BaseModel{
        Observable<BaseResult<ExamResult>> getExamModel(String token, String carrierId);
        Observable<BaseResult<String>> commitExam(String token,int chapter,String carrierId);
    }
    interface View extends BaseView{
        void passExam();
        void setView(ExamResult result);
    }
    abstract class Presenter extends BasePresenter<ExamContract.Model,ExamContract.View>{
        public abstract void getExam(String token,String carrierId);
        public abstract void commitExam(String token,int chapter,String carrierId);
    }
}
